package com.fengzhuang;

public class MyRectangle {
    private int gao;
    private int kuan;

    public MyRectangle() {
    }

    public MyRectangle(int gao, int kuan) {
        this.gao = gao;
        this.kuan = kuan;
    }

    public int getGao() {
        return gao;
    }

    public void setGao(int gao) {
        this.gao = gao;
    }

    public int getKuan() {
        return kuan;
    }

    public void setKuan(int kuan) {
        this.kuan = kuan;
    }
    public void zhouChang(){
        System.out.println("它的周长："+(kuan+gao)*2);
    }
    public void mianJi(){
        System.out.println("它的面积："+kuan*gao);
    }
}
